const bannerModel = require("./model/bannerModel")

module.exports.findBannerDao = async function(){
   return await bannerModel.findAll()
}

module.exports.updateBannerDao = async function(arr){
   bannerModel.destroy({
      truncate:true
   });
   await bannerModel.bulkCreate(arr)
   return await bannerModel.findAll()
}